Passed
Push — feature/full-redesign ( 7ff54a...588bf5 )
by Kevin Van
03:53
created

helper.ts ➔ mapPsdStatus   A

Complexity

Conditions 1

Size

Total Lines 9
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 9
rs 10
c 0
b 0
f 0
cc 1
1
export function mapPsdStatus(statusCode: number): string | null {
2
  const statusCodes = new Map([
3
    [0, `Gepland`],
4
    [1, `Forfait`],
5
    [2, `Afgelast`],
6
    [3, `Onderbroken`],
7
  ])
8
9
  return statusCodes.get(statusCode) || null
10
}
11